package com.chaoyi.dao.mysql;

import com.chaoyi.doman.koreanvideo.VideoCollectionOutput;
import com.chaoyi.model.KoreanVideo;
import com.chaoyi.model.VideoCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: 卜加超
 * @Date: 2018/12/26 11:25
 * @Description:
 */
public interface VideoCollectionMapper {

    int findCount(@Param(value = "obj")VideoCollectionOutput videoCollectionOutput);

    List<VideoCollectionOutput> findList(@Param("pageStat")int offset,
                               @Param("pageStop") int limit,
                               @Param(value = "obj")VideoCollectionOutput videoCollectionOutput);

    int addVideoCollectionSave(@Param(value = "obj")VideoCollection entity);

    VideoCollectionOutput selectVideoOne(@Param(value = "id")int id);

    int updateVideoCollection(@Param(value = "obj")VideoCollectionOutput entity);

    int deleteVideoCollection(@Param(value = "id")int id);

    List<VideoCollection> getVideoCollectionList(@Param(value = "type")int videoType,
                                                 @Param("pageStat")int page,
                                                 @Param("pageStop")int pageSize);
}
